package pe.gob.inei.fx.lib.component.styles.pod
{
	import mx.controls.Alert;
	import mx.styles.CSSStyleDeclaration;
	
	public class MaximizeStyle extends CSSStyleDeclaration {
		
		private static var _instance:MaximizeStyle;
		
		[Embed(source="../../../../images/pod/maximize_up.png")]
		private var maximizeUpDwButtonClass:Class;
		[Embed(source="../../../../images/pod/maximize_over.png")]
		private var maximizeOverButtonClass:Class;
		[Embed(source="../../../../images/pod/restore_up.png")]
		private var restoreUpDwButtonClass:Class;
		[Embed(source="../../../../images/pod/restore_over.png")]
		private var restoreOverButtonClass:Class;
		
		public function MaximizeStyle(singleton:Singleton_) {
			setStyle("upSkin", maximizeUpDwButtonClass);
			setStyle("overSkin", maximizeOverButtonClass);
			setStyle("downSkin", maximizeUpDwButtonClass);
			setStyle("selectedUpSkin", restoreUpDwButtonClass);
			setStyle("selectedOverSkin", restoreOverButtonClass);
			setStyle("selectedDownSkin", restoreUpDwButtonClass);
		}
		
		public static function instance():MaximizeStyle {
			if(MaximizeStyle._instance == null)
				MaximizeStyle._instance = new MaximizeStyle(new Singleton_());
			return MaximizeStyle._instance;
		}
	}
}

class Singleton_{}